// 请求跟路径
import path from "@/request/path";
// 导入网络请求
import axios from "@/request/index";

const api = {
    /**
     * 获取前台用户
     * @returns 
     */
    prouser(page, limit) {
        return axios.get(path.baseUrl + `/pro/users/tree?page=${page}&limit=${limit}`);
    },
    /**
     * 获取后台用户
     * @returns 
     */
    backuser(page, limit) {
        return axios.get(path.baseUrl + `/back/users/all?page=${page}&limit=${limit}`);
    }
}

// 导出接口
export default api;